package issr.controller;

import issr.entity.Utente;
import issr.misc.Labels;
import issr.persistence.Database;
import issr.persistence.ILog;

public class ControlloreLogout {

    private ILog db = Database.getInstance();

    public boolean logout(Utente utente) {
        try {
            db.aggiungiEntry(utente, Labels.LOGOUT);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}
